export const to = (item, data) => {
	if (data) {
		uni.navigateTo({
			url: `${item}?form=${JSON.stringify(data)}`
		})
	} else {
		uni.navigateTo({
			url: `${item}`
		})
	}

}
export const list = () => {
	let list = [{
			text: '首页',
			iconPath: "/static/img/syw.png",
			selectedIconPath: "/static/img/sy.png", // 激活(选中)
			customIcon: false,
			pagePath: '/pages/index/index', // 1.5.6新增，路径需要以"/"开头
		},
		{
			pagePath: '/pages/shoppingMall/shoppingMall', // 1.5.6新增，路径需要以"/"开头
			iconPath: "/static/img/spw.png",
			selectedIconPath: "/static/img/sp.png",
			text: '商铺',
			customIcon: false,
		},
		{
			// pagePath: "/pages/shoppingMall/shoppingMall",
			iconPath: "/static/img/fb.png",
			selectedIconPath: "/static/img/fb.png",
			text: '发布',
			midButton: true,
			customIcon: false,
		},
		{
			pagePath: '/pages/news/news', // 1.5.6新增，路径需要以"/"开头
			iconPath: "/static/img/xxw.png",
			selectedIconPath: "/static/img/xx.png",
			text: '消息',
			customIcon: false,
			count: 2,
		},
		{
			pagePath: '/pages/my/my', // 1.5.6新增，路径需要以"/"开头
			iconPath: "/static/img/wdw.png",
			selectedIconPath: "account-fill",
			text: '我的',
			customIcon: false,
		},
	]
	return list

}
